package com.example.layui_project.dao;

import com.example.layui_project.comm.dao.BaseDao;
import com.example.layui_project.entity.SysRole;
import com.example.layui_project.entity.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao extends BaseDao<SysUser> {
    public SysUser getAllRoleAndPermissionByUser(String username);

    public int batchAdd(@Param("roles") List<SysRole> roles,@Param("user") SysUser user);

    public int removeAllUserRole(Integer userId);
}
